  /**
   * Generate time : 2013-06-21 4:22:47
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBCoalseam 
 * table comment : 煤层信息 
 */
public class ZMCBCoalseam extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdNo = " ";		/* 煤层编号*/
	private String fdName = " ";		/* 煤层名称*/
	private Double fdThickness = new Double(0);		/* 煤层厚度*/
	private Double fdThicknessMax = new Double(0);		/* 厚度最大值*/
	private Double fdThicknessMin = new Double(0);		/* 厚度最小值*/
	private Float fdDip = new Float(0);	/* 倾角*/	
	private String fdDipType = " ";		/* 倾斜类别*/
	private Double fdDensity = new Double(0);		/* 容重*/
	private String fdStabilty = " ";		/* 稳定性*/
	private String fdSpecies = " ";		/* 煤种*/
	private Float fdWater = new Float(0);	/* 水分*/	
	private Float fdAsh = new Float(0);	/* 灰分*/	
	private Float fdSulfur = new Float(0);	/* 硫分*/	
	private Float fdVolatile = new Float(0);	/* 挥发分*/	
	private Double fdHeat = new Double(0);		/* 发热量*/
	private Long fdElevation = new Long(0);	/* 标高*/
	private Long fdGasMeasuringpoint = new Long(0);	/* 瓦斯测点*/
	private Float fdGasPressure = new Float(0);	/* 瓦斯压力*/	
	private Float fdGasDensity = new Float(0);	/* 瓦斯浓度*/	
	private String fdRemarks = " ";		/* 备注*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("煤层编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("煤层名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdThickness");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("煤层厚度");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdThicknessMax");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("厚度最大值");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdThicknessMin");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("厚度最小值");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDip");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(3);
	eiColumn.setDescName("倾角");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDipType");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("倾斜类别");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDensity");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(6);
	eiColumn.setDescName("容重");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStabilty");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("稳定性");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSpecies");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("煤种");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWater");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("水分");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAsh");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("灰分");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSulfur");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("硫分");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVolatile");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("挥发分");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHeat");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("发热量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdElevation");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("标高");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGasMeasuringpoint");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("瓦斯测点");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGasPressure");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("瓦斯压力");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGasDensity");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("瓦斯浓度");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBCoalseam() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdNo - 煤层编号
	 * @return the fdNo
	 */
	public String getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 煤层编号
	 */
	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdName - 煤层名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 煤层名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdThickness - 煤层厚度
	 * @return the fdThickness
	 */
	public Double getFdThickness() {
		return this.fdThickness;
	}
	
	/**
	 * set the fdThickness - 煤层厚度
	 */
	public void setFdThickness(Double fdThickness) {
		this.fdThickness = fdThickness;
	}
	
	/**
	 * get the fdThicknessMax - 厚度最大值
	 * @return the fdThicknessMax
	 */
	public Double getFdThicknessMax() {
		return this.fdThicknessMax;
	}
	
	/**
	 * set the fdThicknessMax - 厚度最大值
	 */
	public void setFdThicknessMax(Double fdThicknessMax) {
		this.fdThicknessMax = fdThicknessMax;
	}
	
	/**
	 * get the fdThicknessMin - 厚度最小值
	 * @return the fdThicknessMin
	 */
	public Double getFdThicknessMin() {
		return this.fdThicknessMin;
	}
	
	/**
	 * set the fdThicknessMin - 厚度最小值
	 */
	public void setFdThicknessMin(Double fdThicknessMin) {
		this.fdThicknessMin = fdThicknessMin;
	}
	
	/**
	 * get the fdDip - 倾角
	 * @return the fdDip
	 */
	public Float getFdDip() {
		return this.fdDip;
	}
	
	/**
	 * set the fdDip - 倾角
	 */
	public void setFdDip(Float fdDip) {
		this.fdDip = fdDip;
	}
	
	/**
	 * get the fdDipType - 倾斜类别
	 * @return the fdDipType
	 */
	public String getFdDipType() {
		return this.fdDipType;
	}
	
	/**
	 * set the fdDipType - 倾斜类别
	 */
	public void setFdDipType(String fdDipType) {
		this.fdDipType = fdDipType;
	}
	
	/**
	 * get the fdDensity - 容重
	 * @return the fdDensity
	 */
	public Double getFdDensity() {
		return this.fdDensity;
	}
	
	/**
	 * set the fdDensity - 容重
	 */
	public void setFdDensity(Double fdDensity) {
		this.fdDensity = fdDensity;
	}
	
	/**
	 * get the fdStabilty - 稳定性
	 * @return the fdStabilty
	 */
	public String getFdStabilty() {
		return this.fdStabilty;
	}
	
	/**
	 * set the fdStabilty - 稳定性
	 */
	public void setFdStabilty(String fdStabilty) {
		this.fdStabilty = fdStabilty;
	}
	
	/**
	 * get the fdSpecies - 煤种
	 * @return the fdSpecies
	 */
	public String getFdSpecies() {
		return this.fdSpecies;
	}
	
	/**
	 * set the fdSpecies - 煤种
	 */
	public void setFdSpecies(String fdSpecies) {
		this.fdSpecies = fdSpecies;
	}
	
	/**
	 * get the fdWater - 水分
	 * @return the fdWater
	 */
	public Float getFdWater() {
		return this.fdWater;
	}
	
	/**
	 * set the fdWater - 水分
	 */
	public void setFdWater(Float fdWater) {
		this.fdWater = fdWater;
	}
	
	/**
	 * get the fdAsh - 灰分
	 * @return the fdAsh
	 */
	public Float getFdAsh() {
		return this.fdAsh;
	}
	
	/**
	 * set the fdAsh - 灰分
	 */
	public void setFdAsh(Float fdAsh) {
		this.fdAsh = fdAsh;
	}
	
	/**
	 * get the fdSulfur - 硫分
	 * @return the fdSulfur
	 */
	public Float getFdSulfur() {
		return this.fdSulfur;
	}
	
	/**
	 * set the fdSulfur - 硫分
	 */
	public void setFdSulfur(Float fdSulfur) {
		this.fdSulfur = fdSulfur;
	}
	
	/**
	 * get the fdVolatile - 挥发分
	 * @return the fdVolatile
	 */
	public Float getFdVolatile() {
		return this.fdVolatile;
	}
	
	/**
	 * set the fdVolatile - 挥发分
	 */
	public void setFdVolatile(Float fdVolatile) {
		this.fdVolatile = fdVolatile;
	}
	
	/**
	 * get the fdHeat - 发热量
	 * @return the fdHeat
	 */
	public Double getFdHeat() {
		return this.fdHeat;
	}
	
	/**
	 * set the fdHeat - 发热量
	 */
	public void setFdHeat(Double fdHeat) {
		this.fdHeat = fdHeat;
	}
	
	/**
	 * get the fdElevation - 标高
	 * @return the fdElevation
	 */
	public Long getFdElevation() {
		return this.fdElevation;
	}
	
	/**
	 * set the fdElevation - 标高
	 */
	public void setFdElevation(Long fdElevation) {
		this.fdElevation = fdElevation;
	}
	
	/**
	 * get the fdGasMeasuringpoint - 瓦斯测点
	 * @return the fdGasMeasuringpoint
	 */
	public Long getFdGasMeasuringpoint() {
		return this.fdGasMeasuringpoint;
	}
	
	/**
	 * set the fdGasMeasuringpoint - 瓦斯测点
	 */
	public void setFdGasMeasuringpoint(Long fdGasMeasuringpoint) {
		this.fdGasMeasuringpoint = fdGasMeasuringpoint;
	}
	
	/**
	 * get the fdGasPressure - 瓦斯压力
	 * @return the fdGasPressure
	 */
	public Float getFdGasPressure() {
		return this.fdGasPressure;
	}
	
	/**
	 * set the fdGasPressure - 瓦斯压力
	 */
	public void setFdGasPressure(Float fdGasPressure) {
		this.fdGasPressure = fdGasPressure;
	}
	
	/**
	 * get the fdGasDensity - 瓦斯浓度
	 * @return the fdGasDensity
	 */
	public Float getFdGasDensity() {
		return this.fdGasDensity;
	}
	
	/**
	 * set the fdGasDensity - 瓦斯浓度
	 */
	public void setFdGasDensity(Float fdGasDensity) {
		this.fdGasDensity = fdGasDensity;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdThickness(NumberUtils.toDouble(StringUtils.toString(map.get("fdThickness")), fdThickness));
		setFdThicknessMax(NumberUtils.toDouble(StringUtils.toString(map.get("fdThicknessMax")), fdThicknessMax));
		setFdThicknessMin(NumberUtils.toDouble(StringUtils.toString(map.get("fdThicknessMin")), fdThicknessMin));
		setFdDip(NumberUtils.toFloat(StringUtils.toString(map.get("fdDip")), fdDip));
		setFdDipType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDipType")), fdDipType));
		setFdDensity(NumberUtils.toDouble(StringUtils.toString(map.get("fdDensity")), fdDensity));
		setFdStabilty(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStabilty")), fdStabilty));
		setFdSpecies(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSpecies")), fdSpecies));
		setFdWater(NumberUtils.toFloat(StringUtils.toString(map.get("fdWater")), fdWater));
		setFdAsh(NumberUtils.toFloat(StringUtils.toString(map.get("fdAsh")), fdAsh));
		setFdSulfur(NumberUtils.toFloat(StringUtils.toString(map.get("fdSulfur")), fdSulfur));
		setFdVolatile(NumberUtils.toFloat(StringUtils.toString(map.get("fdVolatile")), fdVolatile));
		setFdHeat(NumberUtils.toDouble(StringUtils.toString(map.get("fdHeat")), fdHeat));
		setFdElevation(NumberUtils.toLong(StringUtils.toString(map.get("fdElevation")), fdElevation));
		setFdGasMeasuringpoint(NumberUtils.toLong(StringUtils.toString(map.get("fdGasMeasuringpoint")), fdGasMeasuringpoint));
		setFdGasPressure(NumberUtils.toFloat(StringUtils.toString(map.get("fdGasPressure")), fdGasPressure));
		setFdGasDensity(NumberUtils.toFloat(StringUtils.toString(map.get("fdGasDensity")), fdGasDensity));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdThickness",StringUtils.toString(fdThickness, eiMetadata.getMeta("fdThickness")));	
			map.put("fdThicknessMax",StringUtils.toString(fdThicknessMax, eiMetadata.getMeta("fdThicknessMax")));	
			map.put("fdThicknessMin",StringUtils.toString(fdThicknessMin, eiMetadata.getMeta("fdThicknessMin")));	
			map.put("fdDip",StringUtils.toString(fdDip, eiMetadata.getMeta("fdDip")));	
			map.put("fdDipType",StringUtils.toString(fdDipType, eiMetadata.getMeta("fdDipType")));	
			map.put("fdDensity",StringUtils.toString(fdDensity, eiMetadata.getMeta("fdDensity")));	
			map.put("fdStabilty",StringUtils.toString(fdStabilty, eiMetadata.getMeta("fdStabilty")));	
			map.put("fdSpecies",StringUtils.toString(fdSpecies, eiMetadata.getMeta("fdSpecies")));	
			map.put("fdWater",StringUtils.toString(fdWater, eiMetadata.getMeta("fdWater")));	
			map.put("fdAsh",StringUtils.toString(fdAsh, eiMetadata.getMeta("fdAsh")));	
			map.put("fdSulfur",StringUtils.toString(fdSulfur, eiMetadata.getMeta("fdSulfur")));	
			map.put("fdVolatile",StringUtils.toString(fdVolatile, eiMetadata.getMeta("fdVolatile")));	
			map.put("fdHeat",StringUtils.toString(fdHeat, eiMetadata.getMeta("fdHeat")));	
			map.put("fdElevation",StringUtils.toString(fdElevation, eiMetadata.getMeta("fdElevation")));	
			map.put("fdGasMeasuringpoint",StringUtils.toString(fdGasMeasuringpoint, eiMetadata.getMeta("fdGasMeasuringpoint")));	
			map.put("fdGasPressure",StringUtils.toString(fdGasPressure, eiMetadata.getMeta("fdGasPressure")));	
			map.put("fdGasDensity",StringUtils.toString(fdGasDensity, eiMetadata.getMeta("fdGasDensity")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			
		return map;
	
	}
}